import config from "@/config"
import http from "@/utils/request"
export default {
	SaveMemberCouponTicket: {
		url: `${config.API_URL}/MemberCouponTicket/SaveMemberCouponTicket`,
		name: "保存优惠券信息",
		post: async function (data) {
		    return await http.post(this.url, data, {
		        headers: {
		            //'response-status': 401
		        }
		    });
		}
	},
	SetMemberCouponTicketState: {
		url: `${config.API_URL}/MemberCouponTicket/SetMemberCouponTicketState`,
		name: "修改兑换券状态",
		post: async function (data) {
		    return await http.post(this.url, data, {
		        headers: {
		            //'response-status': 401
		        }
		    });
		}
	},
	GetMemberCarInfoList: {
		url: `${config.API_URL}/MemberCouponTicket/GetMemberCarInfoList`,
		name: "根据会员手机号码获取会员卡列表",
		post: async function (data) {
		    return await http.post(this.url, data, {
		        headers: {
		            //'response-status': 401
		        }
		    });
		}
	},
	SendMemberTicket: {
		url: `${config.API_URL}/MemberCouponTicket/SendMemberTicket`,
		name: "会员券发放",
		post: async function (data) {
		    return await http.post(this.url, data, {
		        headers: {
		            //'response-status': 401
		        }
		    });
		}
	},
	GetLimitGoods: {
		url: `${config.API_URL}/MemberCouponTicket/GetLimitGoods`,
		name: "获取优惠券使用限制",
		post: async function (data) {
		    return await http.post(this.url, data, {
		        headers: {
		            //'response-status': 401
		        }
		    });
		}
	},
}
